package com.zHan.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zHan.model.dto.AssginRoleDto;
import com.zHan.model.dto.SysRoleQueryDto;
import com.zHan.model.system.SysRole;

import java.util.List;
import java.util.Map;

/**
 * ClassName: ISysRoleService
 * Description:
 * date: 2023/6/19 0019 0:11
 *
 * @author zHan
 */
public interface ISysRoleService extends IService<SysRole> {

    Page<SysRole> selectPageQuery(Long page, Long pageSize, SysRoleQueryDto roleQueryVo);

    Map<String, Object> selectRolesByUserId(String userId);

    boolean assignRoleToUser(AssginRoleDto assginRoleDto);

    boolean removeRoleById(Long id);

    boolean removeRoleByIds(List<Long> idList);
}
